package cn.tedu.baking2023.controller;

import cn.tedu.baking2023.mapper.BakingMapper;
import cn.tedu.baking2023.pojo.vo.BakingIndexVO;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@Api(tags = "内容展示管理模块")
@RestController
public class BakingController {
    @Autowired(required = false)
    BakingMapper bakingMapper;
    @ApiOperation("内容展示")
    @ApiOperationSupport(order = 121)
    @PostMapping("/selectIndex")
    public List<BakingIndexVO> selectIndex() {
        return bakingMapper.selectIndex();
    }
}
